/**
 * @Author: Bobby
 * @Date: 2021-12-30 10:01:42
 * @LastEditTime: 2022-03-01 10:17:25
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\common\components\baseComs\basic\uiTree.js
 * @CIMC-V2
 */

import { exInput, exSwitch, exRequestData } from '@ve/common/components/extension'

export default {
  VERSION: '20220408',
  type: 'uiTree',
  //组件类型
  name: '树形',
  icon: 'node-tree',
  svg: 'shuzhuangtu',
  //数据别名
  // dataName: 'uiTree_data',
  //子组件列表
  list: [],
  //数据集合 表单 列表等等
  data: {
    formData: {
      treeData: '',
    },
    requestData: {},
  },
  //表单验证
  rules: {},
  //扩展
  extension: {
    model: exInput('Model', 'tree_name'),
    api: exInput('Api接口', ''),
    method: exInput('Method', ''),
    getDataKey: exInput('获取数据Key', ''),
    requestData: exRequestData('参数', [
      { key: '#LIMIT#', value: 1 },
      { key: '#PAGE_SIZE#', value: 50 },
    ]),
    label: exInput('label', 'label'),
    // children: exInput('children', 'children'),
    idField: exInput('ID', 'id'),
    lvField: exInput('等级', 'lv'),
    parentIdField: exInput('父ID', 'parentId'),
    accordion: exSwitch('手风琴模式', false),
    isCheckModel: exSwitch('可多选', false),
    clickExpandNode: exSwitch('仅图标展开', false),
    openSearch: exSwitch('开启查询', false),
    getOtherDataKey: exInput('附加值', '', '需要额外从节点数据中带出来的值的key, 多个key请用 , 分隔'),
    // icon: exIcon('图标', ''),
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
}
